package com.beerandjesus.sportofkings.handicapper.model;

import com.beerandjesus.sportofkings.handicapper.profile.ProfileImpl;
import com.beerandjesus.sportofkings.handicapper.profile.ProfileType;

public class CramerClassDropJockeySwitchProfile extends ProfileImpl {
    private boolean riderWonBeforeWithHorse;
    private boolean leadingJockey;
    private boolean dropFromAllowanceTo40KClaiming;
    private boolean switchToJockeyWithSpecialization;

    public CramerClassDropJockeySwitchProfile(ProfileType type, int score) {
        super(type, score);
    }

    public boolean isRiderWonBeforeWithHorse() {
        return riderWonBeforeWithHorse;
    }

    public void setRiderWonBeforeWithHorse(boolean riderWonBeforeWithHorse) {
        this.riderWonBeforeWithHorse = riderWonBeforeWithHorse;
    }

    public boolean isLeadingJockey() {
        return leadingJockey;
    }

    public void setLeadingJockey(boolean leadingJockey) {
        this.leadingJockey = leadingJockey;
    }

    public boolean isDropFromAllowanceTo40KClaiming() {
        return dropFromAllowanceTo40KClaiming;
    }

    public void setDropFromAllowanceTo40KClaiming(boolean dropFromAllowanceTo40KClaiming) {
        this.dropFromAllowanceTo40KClaiming = dropFromAllowanceTo40KClaiming;
    }

    public boolean isSwitchToJockeyWithSpecialization() {
        return switchToJockeyWithSpecialization;
    }

    public void setSwitchToJockeyWithSpecialization(boolean switchToJockeyWithSpecialization) {
        this.switchToJockeyWithSpecialization = switchToJockeyWithSpecialization;
    }

    public boolean qualifiesInCaseOfTie() {
        return (riderWonBeforeWithHorse || leadingJockey || dropFromAllowanceTo40KClaiming || switchToJockeyWithSpecialization);
    }
}
